const app = getApp()
Page({
  data:{
    javascript:[{name:"ECMA"},{name:"DOM"},{name:"BOM"}],
    num1: 0,
    num2: 10,
    num3: 100
  },
  onLoad: function (options) {
    app.post("index.php",{name:89}).then(res=>{
      console.log("index的请求",res)
    })
  },
  numChange(event) {
    const { num, nameId } = event.detail
    this.setData({
      [nameId]: num
    })
  }
})